package com.example.graduate.Service;

import com.example.graduate.Bean.*;

import java.util.Date;
import java.util.List;

public interface ClientService {

    Client selectByPrimaryKey(Integer id);

    Client selectByOpenId(String openId);

    int insertSelective(Client record);

    int updateByPrimaryKeySelective(Client record);

    int checkSignDay(String id, Date start_time, Date end_time);

    Date selectLastDate(String id);

    Post selectPostById(Integer id);

    int insertSelective(Post record);


    CardsCollect getCollectiveById(String id);

    void addCollective(UserCollective userCollective);

    int sign(UserLogin record);

    int insertHistory(History history);

    List<History> selectHistoryById(Integer id);

    List<Client> selectAll();

    List<Studyrecord> selectStudeyRecordByPrimaryKey(Integer id);

    List<CommunityCatetory> select();

    List<Post> selectPostByPrimaryKey(Integer id);

    List<Paperquestion> selectPaperquestionByPaperId(String paperId);

    List<Paper> selectPaper();

    int insert(Wrongqueston record);

    List<Wrongqueston> selectByPrimaryKeys(Integer userid);

    Paper selectById(Integer id);

    List<Wrongqueston> selectById(Integer userid,Integer paperId);

    Paperquestion selectPaperquestionById(Integer id);

    List<Historyline> selectAllHistoryLine();

    List<Historycontent> selectHistoryContentByPrimaryKey(Integer id);

    List<Knowledge> selectByPrimaryKey();

    List<Knowledge2> select5ByPrimaryKey(Integer id);

    Knowledgearticle selectkonwByPrimaryKey(Integer id);

    List<Mapcontent> selectMapByPrimaryKey();

    Mapinside selectMapInsideByPrimaryKey(Integer id);

}
